# Contributor: David Demelier <markand@malikania.fr>
# Maintainer: David Demelier <markand@malikania.fr>
pkgname=kcgi
pkgver=0.10.18
_pkgver=${pkgver//./_}
pkgrel=0
pkgdesc="CGI and FastCGI library for C/C++ web applications"
url="https://kristaps.bsd.lv/kcgi"
arch="all"
license="ISC"
makedepends="bmake"
checkdepends="curl-dev"
subpackages="$pkgname-static $pkgname-dev $pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/kristapsdz/kcgi/archive/VERSION_$_pkgver.tar.gz"
builddir="$srcdir/kcgi-VERSION_$_pkgver"

build() {
	./configure PREFIX=/usr MANDIR=/usr/share/man SBINDIR=/usr/sbin
	bmake
}

check() {
	bmake regress
}

package() {
	bmake DESTDIR="$pkgdir" install
}

sha512sums="587c70b3dc9b710e4eb270ae0905b7684e95d5f0df63d078e3266f62791c2ed0e8009e47afac538e34188d7b64466d48c07e056e76f33fef1df1e308ba866deb  kcgi-0.10.18.tar.gz"
